package com.bocim.course.service;

import com.bocim.course.dao.Userdao;
import com.bocim.course.meta.User;
import com.bocim.course.serviceImp.IUserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;
import org.springframework.stereotype.Service;

/**
 * Created by liujunchen on 2016/11/6.
 */
@Service
public class UserService implements IUserService{
    @Autowired
    private   Userdao userdao  ;
    @Override
    public User validateLogin(String username, String userpassword) {
        User user = userdao.selectUserWhenLogon(username, userpassword);
        return user ;
    }
}
